package com.sskj.trafficcontrol.util.weather;

/**
 * @author : zhao kuo
 * @date : 2019/2/15 12:45
 * @description :
 */

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;

@XmlAccessorType(XmlAccessType.FIELD)
// XML文件中的根标识
@XmlRootElement(name = "resp")
// 控制JAXB 绑定类中属性和字段的排序
@XmlType(propOrder = {
        "city",
        "updatetime",
        "wendu",
        "fengli",
        "shidu",
        "fengxiang",
        "sunrise_1",
        "sunset_1",
        "sunrise_2",
        "sunset_2",
        "forecast",
        "zhishus",
})
@Data
public class Weather  implements Serializable {
    private static final long serialVersionUID = 1L;

    private String city;
    private String updatetime;
    private String wendu;
    private String fengli;
    private String shidu;
    private String fengxiang;
    private String sunrise_1;
    private String sunset_1;
    private String sunrise_2;
    private String sunset_2;
    private Forecast  forecast;
    private Zhishus   zhishus;
}
